import moment from "moment";

export default {
  /**
   * dateFormate
   * date:string
   */
  dateFormat(date: string, format: string = "yyyy-MM-DD HH:mm:ss"): string {
    return date ? moment(date).format(format).toString() : date;
  },
};
